package com.demo.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.common.entity.ChatRoom;
import com.demo.common.entity.ChatRoomMember;
import com.demo.common.entity.vo.ChatRoomMemberVO;
import com.demo.common.response.Result;

import java.util.List;

/**
 * 聊天室成员表(ChatRoomMember)
 *
 * @author why
 * @since 2025-09-23 10:12:43
 */
public interface ChatRoomMemberService extends IService<ChatRoomMember> {

    Result<List<ChatRoomMemberVO>> listRoomByUserId(String userId);

    Result joinChatRoom(Long userId, Long roomId);

    Result<List<ChatRoom>> findOtherRoomByUserId(String userId);
}




